package com.ziyun.erp.modules.quoteFactoryMaterial.service;

import com.baomidou.mybatisplus.service.IService;
import com.ziyun.erp.modules.quoteFactoryMaterial.entity.QuoteFactoryMaterialEntity;
import com.ziyun.erp.modules.quoteFactoryMaterial.entity.QuoteFactoryMaterialVO;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;

import java.util.List;
import java.util.Map;

/**
 * 工厂材料价格表
 *
 * @author jl
 * @email
 * @date 2018-09-12 09:04:01
 */
public interface QuoteFactoryMaterialService extends IService<QuoteFactoryMaterialEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<QuoteFactoryMaterialEntity> findWeightList(Integer factoryId, String optionName, String materialType);

    R insertQuoteFactoryMaterial(List<QuoteFactoryMaterialEntity> quoteFactoryMaterialList,Integer factoryId,String username);

    QuoteFactoryMaterialEntity selectOneById(Integer id);

    R updateQuoteFactoryMaterialById(List<QuoteFactoryMaterialEntity> quoteFactoryMaterialList,Integer factoryId,String username);

    Integer deleteByIds(Integer[] ids);

    int setStart(Integer id, Boolean value);

    List<QuoteFactoryMaterialVO> getLeftTableData(Integer factoryId);

    R delWeight(String optionName,Integer factoryId);

    void specialPaper(Integer[] ids);

    void unSpecialPaper(Integer[] ids);
}

